package com.neural.activation;

public class LinearActivation extends Activation {
	
	private final double a;
	private final double b;
	
	public LinearActivation() {
		this(1.0, 0.0);
	}
	
	public LinearActivation(double a, double b) {
		super("Linear");
		this.a = a;
		this.b = b;
	}
	
	@Override
	public double getValueFor(double x) {
		return a*x + b;
	}
}
